just to share with those who's using JW Player for their Youtube video and wanted to use their own skin instead of the default one.

file: emfield/contrib/emvideo/providers/youtube.inc
line: 475

change to:

PS: remember to change '/path_to_your_skin' to your actual path. e.g. /player/skin.swf

Comments

CinemaSaville’s picture

I don't see that line of code in that file. Line 475 has something else on it. Can you post the whole code here with the changes? Thanks

sadist’s picture

it was version 'youtube.inc,v 1.1.2.40 2009/10/05 19:05:10' that i'm using.

    else if ($use_flv) {
      $flashvars = drupal_query_string_encode($flashvars);
      $output = <<<FLV
        <div id="$div_id"><embed src="$url" width="$width" height="$height" allowscriptaccess="always" allowfullscreen="$fullscreen_value" flashvars="$flashvars&skin=/player/skin.swf" /></div>
FLV;
    }
aaron’s picture

Status: Active » Fixed

Firstly, *NEVER* modify the include file itself; it's a theme function (theme_emvideo_youtube_flash), which you can override normally (see http://drupal.org/theme-guide/6). Secondly, if you use the FLV Media Player module in conjunction with this, you can also set a profile to use, where you can control the skin administratively, as well as other options. Just set up a profile in FLV Media Player, then go to the Emfield adminstration page and select the "FLV Media Player Profile" from the drop-down near the top of the page.

sadist’s picture

Aaron, thanks.

I am using SWFTools which doesn't integrate with Emfield nicely to use the skin. But the FLV Media Player seems interesting, will check it out.

aaron’s picture

The FLV Media Player also uses SWF Object (in fact is dependent on it), so your solution will be compatible.

Eugene Fidelin’s picture

subscribe for http://drupal.org/node/604860#comment-2156894 as the easiest solve

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Very happy with this profile integration!